package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class SysStreetFireInfoRowMapper implements RowMapper<SysStreetFireInfo>{



	@Override
	public SysStreetFireInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
		SysStreetFireInfo  lj= new SysStreetFireInfo();
		lj.setId(rs.getInt("id"));
		lj.setName(rs.getString("name"));
		lj.setAdress(rs.getString("adress"));
		lj.setHeadcount(rs.getString("headcount"));
		lj.setClasses_number(rs.getString("classes_number"));
		lj.setFire_control_car(rs.getString("fire_control_car"));
		lj.setExtinguisher(rs.getString("extinguisher"));
		lj.setHydraulic_giant(rs.getString("hydraulic_giant"));
		lj.setWater_hose(rs.getString("water_hose"));
		lj.setWater_drum(rs.getString("water_drum"));
		lj.setFire_wrench(rs.getString("fire_wrench"));
		lj.setFire_control_axe(rs.getString("fire_control_axe"));
		lj.setFire_control_helmet(rs.getString("fire_control_helmet"));
		lj.setFire_control_glove(rs.getString("fire_control_glove"));
		lj.setFire_control_shoe(rs.getString("fire_control_shoe"));
		lj.setFire_control_belt(rs.getString("fire_control_belt"));
		lj.setLng(rs.getString("lng"));
		lj.setLat(rs.getString("lat"));

		return lj;
	}

}
